package com.kaibes.orm.core.listener;

import java.sql.SQLException;
import java.util.List;

public interface CacheListener<E> {
    
    <T> List<T> get(Object wrapper) throws SQLException;
    void set(Object wrapper, List<?> dataList) throws SQLException;
    void clear() throws SQLException;
    
    Long getCount(Object wrapper) throws SQLException;
    void setCount(Object wrapper, Long count) throws SQLException;
    
}
